package com.dayuanit.dy15.atm.service;

import com.dayuanit.dy15.atm.dto.CardDTO;

import java.util.List;

public interface CardService {

    int openaccount(long userId, String password, String confirmPassword);

    int deposit(Long cardId, String password, String amount);

    int withdraw(Long cardId, String password, String amount);

    int transfer(Long cardId, String cardNumIn, String password, String amount);

    List<CardDTO> queryCards(long userId);
}
